package com.nd.pojo.vo;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * @Description:
 * @author: Aaron
 * @create: 2021-06-09 16:40
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GrouponListRecordVOO {

    private List<SubGroupon> subGroupons;
    private GrouponBean groupon;
    private RulesBean rules;
    private String iconUrl;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class GrouponBean {
        private Integer orderId;//订单id
        private Integer userId;//用户id
    }
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class RulesBean {
        private BigDecimal discount;//团购折扣
        private Integer discountMember;//团购要求
        private Date addTime;//开始时间
        private Date expireTime;//结束时间
    }
    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SubGroupon {
        private Integer orderId;//订单id
        private Integer userId;//用户id
        private Integer length;//参与人数
    }

}
